package com.xq.shop.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author gaoxiaojin
 */
@Data
public class EditBannerDto {

    @NotNull(message = "id不能为空")
    private Integer id;

    /**
     * 图片id
     */
    @NotNull(message = "imageId不能为空")
    private Integer imageId;

    /**
     * 标题
     */
    @NotBlank(message = "title不能为空")
    private String title;

    /**
     * 轮播跳转类型
     */
    @NotNull(message = "type不能为空")
    private Integer type;

    /**
     * 轮播跳转内容
     */
    private String content;

    /**
     * 显示状态 1显示 0不显示
     */
    @NotNull(message = "mark不能为空")
    private Integer mark;
}
